package com.azt.provider.mapper;

import com.azt.api.dto.EnqBgetPchaseCompany;
import com.azt.api.dto.EnqBgetPurchaseCreate;
import com.azt.api.dto.EnqQuoteDetail;
import com.azt.api.pojo.EnqBudget;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface EnqBudgetMapper extends Mapper<EnqBudget> {

    /**
     * 生成采购预算前置页面
     * Created by 张栋 on 2016/9/27 14:24
     */
    List<EnqBgetPurchaseCreate> getEnqBgetPchurCreate(Integer enqid);

    /**
     * 采购询价-报价详情
     * Created by 张栋 on 2016/10/10 10:09
     */
    List<EnqQuoteDetail> getProjPurchaseQuoteDetail(Integer enqid);

    /**
     * 查选择的报价的 类目及类目下的产品
     * Created by 张栋 on 2016/10/24 13:22
     *
     * @param enqid
     * @param quoteids
     */
    List<EnqBgetPurchaseCreate> getBgetCatAndProduct(@Param("enqid")Integer enqid,@Param("quoteids") List<Integer> quoteids);

    /**
     * 接上一步,查#某个类别下的所有报价商 信息
     * Created by 张栋 on 2016/10/24 13:53
     */
    List<EnqBgetPchaseCompany> getBgetCatAndProduct2(@Param("quoteids") List<Integer> quoteids);

    /**
     * #根据每个公司,查该公司下的所有报价
     * Created by 张栋 on 2016/11/8 10:03
     */
    List<Double> getBgetCatAndProduct3(@Param("categoryid") Integer categoryid, @Param("companyId") Integer companyId , @Param("enqid") Integer enqid, @Param("quoteids")List<Integer> quoteids);


}